package com.lswms.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

import com.lswms.common.service.impl.CrudServiceImpl;
import com.lswms.dao.YnDcProdClickDao;
import com.lswms.dto.YnDcProdClickDTO;
import com.lswms.entity.YnDcProdClickEntity;
import com.lswms.service.YnDcProdClickService;

import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 产品点击次数
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2020-07-24
 */
@Service
public class YnDcProdClickServiceImpl extends CrudServiceImpl<YnDcProdClickDao, YnDcProdClickEntity, YnDcProdClickDTO> implements YnDcProdClickService {

    @Override
    public QueryWrapper<YnDcProdClickEntity> getWrapper(Map<String, Object> params){
        String id = (String)params.get("id");

        QueryWrapper<YnDcProdClickEntity> wrapper = new QueryWrapper<>();
        wrapper.eq(StringUtils.isNotBlank(id), "id", id);

        return wrapper;
    }


}